package com.andy.android.serialporttest;

import android.content.Context;

public class Log {

    static Context mContext;
    private static OnLog onLog;

    public static void setOnLog(OnLog onLog) {
        Log.onLog = onLog;
    }

    public static void init(Context context) {
        mContext = context;
    }

    public static void d(String tag, String content) {
        onLog.onLog(tag + content);
    }

    interface OnLog {
        void onLog(String content);
    }
}
